
import { createRoot } from 'react-dom/client'

// import App from './App.tsx'
import Router from './router/Index.tsx'
import { BrowserRouter,HashRouter } from 'react-router'
import './assets/fonts/iconfont.css'
import './index.css'
import zhCN from 'antd/locale/zh_CN';
// for date-picker i18n
import 'dayjs/locale/zh-cn';
import { ConfigProvider } from 'antd'
import {Provider} from 'react-redux'
import {store,persistor} from './store/store.ts'
import { PersistGate } from 'redux-persist/integration/react'

createRoot(document.getElementById('root')!).render(
  // <StrictMode>
  //   <App />
  // </StrictMode>,
  <Provider store={store}>
   <PersistGate loading={null} persistor={persistor}>
  <ConfigProvider locale={zhCN}>
   <BrowserRouter>
      <Router></Router>
   </BrowserRouter>
   </ConfigProvider>
   </PersistGate>
   </Provider>

)
